//
//  UIWebView+JavaScriptAlert.m
//  Weshare
//
//  Created by Jason on 16/9/8.
//  Copyright © 2016年 wxwl. All rights reserved.
//

#import "UIWebView+JavaScriptAlert.h"
#import <WebKit/WebKit.h>

@implementation UIWebView (JavaScriptAlert)

- (void)webView:(UIWebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(id)frame {
    UIAlertView* dialogue = [[UIAlertView alloc] initWithTitle:nil message:message delegate:nil cancelButtonTitle:@"好的" otherButtonTitles:nil];
    [dialogue show];
}

@end
